package com.ting.mybatis.io;

import java.io.InputStream;

public class MyResource {

    //通过classloader去拿resource返回一个流
    public static InputStream getResourceAsStream(String resource){
       return Thread.currentThread().getContextClassLoader().getResourceAsStream(resource);

    }
}
